package com.hanc.pay.service;

import java.io.IOException;
import java.util.Map;

public interface WxPayService {

    /**
     * 下单
     * @param productID
     * @return
     * @throws Exception
     */
    Map<String, Object> nativePay(Long productID) throws Exception;

    /**
     * 关单
     * @param orderNo
     */
    void closeNativePay(String orderNo) throws Exception;

    /**
     * 查询订单
     * @param orderNo
     * @return
     */
    String queryOrder(String orderNo) throws Exception;

    /**
     * 订单退款
     * @param orderNo
     * @param reason
     */
    void refunds(String orderNo, String reason) throws Exception;
}
